package iscript.uiFramework.components.button 
{	
	import flash.display.BitmapData;
	public class FlatButton extends BaseButton
	{
		
		public function FlatButton() 
		{
			
		}
		
		override protected function initialize():void 
		{
			super.initialize();
			this._normal_bitmapdata = new BitmapData(this._normal_bitmapdata.width, this._normal_bitmapdata.height, true, 0xFFFFFF);
			this._buttonScale9Grid.updateState(this._normal_bitmapdata);
		}
		
		override public function set theme(value:String):void 
		{
			super.theme = value;
			this._normal_bitmapdata = new BitmapData(this._normal_bitmapdata.width, this._normal_bitmapdata.height, true, 0xFFFFFF);
			this._buttonScale9Grid.updateState(this._normal_bitmapdata);
		}
		
		override public function normal():void 
		{
			this.state = ButtonState.NORMAL;
			toggle = _toggle;
			super.normal();
		}
		
		
	}

}